import request from '@/plugins/request';

// api
export function memberApiKey () {
    return request({
        url: '/qhApi/member/apiKey',
        method: 'get',
    });
}

// 查看API密钥
export function memberApiSecret (data) {
    return request({
        url: '/qhApi/member/apiSecret',
        method: 'post',
        data
    });
}

// 用户发送验证码
export function memberSmsCaptcha (data) {
    return request({
        url: '/qhApi/memberSmsCaptcha',
        method: 'post',
        data
    });
}

// 获取个人信息
export function memberInfo () {
    return request({
        url: '/qhApi/member/info',
        method: 'get',
    });
}

// 修改API接口配置信息
export function memberUpdateKey (keyId, data) {
    return request({
        url: '/qhApi/member/updateKey',
        method: 'put',
        params: keyId,
        data
    });
}
